package org.noote.libs.assistant.analyse;

public class Element_Ponctuation {

	static public enum Type
	{AUCUN,FINDEPHRASE,SEPARATEUR,MARQUE};

	public String _element;
	public Type _type = Type.AUCUN;
	
	public Element_Ponctuation(String sElement, Type iType)
	{
		this._element = sElement;
		this._type  = iType;
	}

	public Type getType() {
		return _type;
	}
	
	@Override
	public String toString()
	{
		String sRet = "";
		switch(_type)
		{
		case AUCUN: sRet = _element; break;
		case FINDEPHRASE: sRet = "e("+_element+")"; break;
		case SEPARATEUR: sRet = "s("+_element+")"; break;
		case MARQUE: sRet = "m("+_element+")"; break;
		default:
			sRet = "?("+_element+")";
		}
		
		return sRet;
	}
}
